package com.dick.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dick.base.model.BaseDictValue;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseDictValueMapper extends BaseMapper<BaseDictValue> {

    @Select("SELECT * FROM BASE_DICT_VALUE WHERE CODE = #{code} ORDER BY SORT_CODE")
    List<BaseDictValue> selectValuesByCode(@Param("code") String code);
}
